package com.pingan.generator.api.service.base;


import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.github.pagehelper.PageInfo;
import com.pingan.generator.api.entity.Pager;

/**
 * 
 * @author ouyangenkun051
 *
 * @param <T>
 */
public interface BaseService<T> {
    PageInfo<T> pagedList(Pager pager);
    public List<T> allPagedList(Map<String,Object> paramMap);

    public int save(T entity,String id);
    public int save(T entity);
    int deleteById(String id);
    
    int deleteById(T entity);

    public int save(T entity,String idKey,Class<Object> clz,HttpServletRequest request);
}